google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2023-12-27',null,null,null,null,null], ['2023-12-28',3136501,null,null,null,null], ['2023-12-29',3136501,null,null,null,null], ['2023-12-30',3136501,null,null,null,null], ['2023-12-31',3136501,null,null,null,null], ['2024-01-01',3136501,null,null,null,null], ['2024-01-02',3136501,null,null,null,null], ['2024-01-03',3138205,null,null,null,null], ['2024-01-04',3138205,null,null,null,null], ['2024-01-05',3138205,null,null,null,null], ['2024-01-06',3138205,null,null,null,null], ['2024-01-07',3138205,null,null,null,null], ['2024-01-08',3138205,null,null,null,null], ['2024-01-09',3138205,null,null,null,null], ['2024-01-10',3139613,null,null,null,null], ['2024-01-11',3139739,null,null,null,null], ['2024-01-12',3139739,null,null,null,null], ['2024-01-13',3140340,null,null,null,null], ['2024-01-14',3140340,null,null,null,null], ['2024-01-15',3140340,null,null,null,null], ['2024-01-16',3141146,null,null,null,null], ['2024-01-17',3141146,null,null,null,null], ['2024-01-18',3141597,null,null,null,null], ['2024-01-19',3141597,null,null,null,null], ['2024-01-20',3142526,null,null,null,null], ['2024-01-21',3142526,null,null,null,null], ['2024-01-22',3142526,null,null,null,null], ['2024-01-23',3142613,null,null,null,null], ['2024-01-24',3142613,null,null,null,null], ['2024-01-25',3142613,null,null,null,null], ['2024-01-26',3142613,null,null,null,null], ['2024-01-27',3146138,null,null,null,null], ['2024-01-28',3146138,null,null,null,null], ['2024-01-29',3149193,null,null,null,null], ['2024-01-30',3149193,null,null,null,null], ['2024-01-31',3151535,null,null,null,null], ['2024-02-01',3151971,null,null,null,null], ['2024-02-02',3151971,null,null,null,null], ['2024-02-03',3152321,null,null,null,null], ['2024-02-04',3152757,null,null,null,null], ['2024-02-05',3153087,null,null,null,null], ['2024-02-06',3153514,null,null,null,null], ['2024-02-07',3153775,null,null,null,null], ['2024-02-08',3154159,null,null,null,null], ['2024-02-09',3154522,null,null,null,null], ['2024-02-10',3154905,null,null,null,null], ['2024-02-11',3155232,null,null,null,null], ['2024-02-12',3155616,null,null,null,null], ['2024-02-13',3155953,null,null,null,null], ['2024-02-14',3156666,null,null,null,null], ['2024-02-15',3156666,null,null,null,null], ['2024-02-16',3157092,null,null,null,null], ['2024-02-17',3157879,null,null,null,null], ['2024-02-18',3157879,null,null,null,null], ['2024-02-19',3158663,null,null,null,null], ['2024-02-20',3159434,null,null,null,null], ['2024-02-21',3160804,null,null,null,null], ['2024-02-22',3160804,null,null,null,null], ['2024-02-23',3161459,null,null,null,null], ['2024-02-24',3161828,null,null,null,null], ['2024-02-25',3162245,null,null,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:0}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });